using System;
using System.Collections.Generic;
using System.Text;

namespace org.ngwt.user.client.rpc
{
    /**
     * An interface for writing values into a stream.
     */
    public interface SerializationStreamWriter
    {
          /**
           * Serializes the contents of this stream into a string.
           * 
           * @return a string that is the serialization of the contents of this stream
           */
          String toString();

          void writeBoolean(Boolean value) ;

          void writeByte(byte value) ;

          void writeChar(char value) ;

          void writeDouble(double value) ;

          void writeFloat(float value) ;

          void writeInt(int value) ;

          void writeLong(long value) ;

          void writeObject(Object value) ;

          void writeShort(short value) ;

          void writeString(String value) ;
    }
}
